from typing import Optional
from fastapi import Query
from main import app
from select import *

@app.get("/api/zt/")
async def zt():
    pass

@app.get("/api/jd/")
async def jd():
    pass

@app.get("/api/ems/")
async def ems():
    capcode = ems.get_slide()
    print(capcode)
    ems.change_size('E:/nodeProject/aa.png', 350, 200, 'E:/nodeProject/python/aa.png')
    ems.change_size('E:/nodeProject/aaa.png', 350, 200, 'E:/nodeProject/python/aaa.png')
    x = input('请输入距离:')
    check(capcode,x)
    get_search(capcode,x)
